package com.mcbbs.web.controller;

import com.mcbbs.web.entity.Users;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import javax.servlet.http.HttpSession;

@Controller
public class URlController {

    @RequestMapping("/user.html")
    public ModelAndView user(){
        ModelAndView mav = new ModelAndView("user");
        return mav;
    }
    @RequestMapping("/user-info.html")
    public ModelAndView user_info(HttpSession session){
        ModelAndView mav = new ModelAndView("user-info");
        return mav;
    }

    @RequestMapping("/reg.html")
    public ModelAndView reg(){
        ModelAndView mav = new ModelAndView("reg-page");
        return mav;
    }

}
